<!DOCTYPE html>
<html>
<link href="resources/flexbox.css" rel="stylesheet">
<style>
    .container::first-letter { line-height: 100px; }
    .flexboxFirstLetter::first-letter { line-height: 200px; }
    p { line-height: 20px; }
</style>

<script src="../../resources/check-layout.js"></script>
<body onload="checkLayout('.container')">
<p>This test flex item should ignore container's firstLetter pseudo element.</p>

<div class="container">
    <div class="flexbox flexboxFirstLetter">
        <p data-expected-height=20>The first item.</p>
        <p data-expected-height=20>The second item.</p>
    </div>
    <p data-expected-height=100>Out of flex.</p>
</div>

<div class="container">
    <div class="flexbox">
        <p data-expected-height=20>The first item.</p>
        <p data-expected-height=20>The second item.</p>
    </div>
    <p data-expected-height=100>Out of flex.</p>
</div>
</body>
</html>
